package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tdriver entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tdriver", catalog = "ordermanager")
public class Tdriver implements java.io.Serializable {

	// Fields

	private Integer id;

	private String driver;

	private String driverPhone;

	// Constructors

	/** default constructor */
	public Tdriver() {
	}

	/** minimal constructor */
	public Tdriver(String driver) {
		this.driver = driver;
	}

	/** full constructor */
	public Tdriver(String driver, String driverPhone) {
		this.driver = driver;
		this.driverPhone = driverPhone;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "driver", nullable = false, length = 45)
	public String getDriver() {
		return this.driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	@Column(name = "driverPhone", length = 45)
	public String getDriverPhone() {
		return this.driverPhone;
	}

	public void setDriverPhone(String driverPhone) {
		this.driverPhone = driverPhone;
	}

}